package photogcalc.common;

/** The Sensor / Film frame size, the CoC and the critical CoC
 * (according to http://johndudak.com/photographers/dof.php).
 *
 * @author aokkonen
 */
public class FrameSize {

    private double w, h, coc, ccoc;

    public FrameSize(double w, double h, double coc) {
        this(w, h, coc, -1);
    }

    public FrameSize(double w, double h, double coc, double ccoc) {
        this.w = w;
        this.h = h;
        this.coc = coc;
        this.ccoc = ccoc;
    }

    public double getWidth() {
        return w;
    }

    public double getHeight() {
        return h;
    }

    public double getCoC() {
        return coc;
    }

    public double getCriticalCoC() {
        return ccoc;
    }
}
